using System;
using System.Collections.Generic;
using System.Text;

namespace OgilvyOne.Model
{
    public class TreeInfo
    {
        // Fields
        public int iNode_ID;
        public int iParent_Node_ID;
        public string sIsDel;
        public string sIsLeaf;
        public string sLink;
        public string sNode_Desc;
        public string sNode_Name;

        // Methods
        public TreeInfo()
        {
        }

        public TreeInfo(int Parent_Node_ID, string Node_Name, string Node_Desc)
            : this(0, Parent_Node_ID, Node_Name, Node_Desc, "0", "0", "")
        {
        }

        public TreeInfo(int Node_ID, int Parent_Node_ID, string Node_Name, string Node_Desc)
            : this(Node_ID, Parent_Node_ID, Node_Name, Node_Desc, "0", "0", "")
        {
        }

        public TreeInfo(int Node_ID, int Parent_Node_ID, string Node_Name, string Node_Desc, string IsDel)
            : this(Node_ID, Parent_Node_ID, Node_Name, Node_Desc, "0", "0", "")
        {
        }

        public TreeInfo(int Node_ID, int Parent_Node_ID, string Node_Name, string Node_Desc, string IsDel, string IsLeaf, string Link)
        {
            this.iNode_ID = Node_ID;
            this.iParent_Node_ID = Parent_Node_ID;
            this.sNode_Name = Node_Name;
            this.sNode_Desc = Node_Desc;
            this.sIsDel = IsDel;
            this.sIsLeaf = IsLeaf;
            this.sLink = Link;
        }

        // Properties
        public string IsDel
        {
            get
            {
                return this.sIsDel;
            }
        }

        public string IsLeaf
        {
            get
            {
                return this.sIsLeaf;
            }
        }

        public string Link
        {
            get
            {
                return this.sLink;
            }
        }

        public string Node_Desc
        {
            get
            {
                return this.sNode_Desc;
            }
        }

        public int Node_ID
        {
            get
            {
                return this.iNode_ID;
            }
        }

        public string Node_Name
        {
            get
            {
                return this.sNode_Name;
            }
        }

        public int Parent_Node_ID
        {
            get
            {
                return this.iParent_Node_ID;
            }
        }

    }
}
